import Vue from 'vue';
import { Lazyload, Swipe, SwipeItem, List, Loading, Overlay, Button, Tab, Tabs  } from 'vant';
import 'vant/lib/index.css';

import lazyLoadingPic from '../assets/img/lazy-loading.png';

Vue
  .use(Loading)
  .use(Swipe)
  .use(Button)
  .use(Tab)
  .use(Tabs)
  .use(SwipeItem)
  .use(List)
  .use(Overlay)
  .use(Lazyload, {
    lazyComponent: true,
    loading: lazyLoadingPic,
    error: lazyLoadingPic
  });